<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\Model;

class ProjectOther extends Model
{
    use HasFactory;

    protected $fillable = ['project_id','technical_bid','business','permit','files','cert','cert_date','blueprint','liquidation','remarks'];

    const STATUS = ['success'=>'完成','afoot'=>'进行中','wait'=>'待开始'];
    const POSTONLY = ['project_id','technical_bid','business','permit','files','cert','cert_date','blueprint','liquidation','remarks'];
    
    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format($this->dateFormat ?: 'Y-m-d H:i:s');
    }
    
}
